#include<stdio.h>

int main()
{
	int i,n=1,sum=0;
	while(n<=10)
	{
		sum+=n*n;
		n++;
	}
	printf("sum = %d\n",sum);
	
	
	return 0;
}